﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmReportePreActa.aspx.cs" Inherits="UI.DireccionAcademica.frmReportePreActa" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 <style type="text/css">
        .style3
        {
            height: 44px;
        }
        .style8
        {
            height: 21px;
        }
        .style9
        {
            height: 17px;
            width: 1141px;
        }
        .style12
        {
            width: 570px;
        }
        .style15
        {
            width: 506px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:UpdatePanel ID="panel1" runat="server">
    <Triggers>
        <%--<asp:PostBackTrigger ControlID="btnBuscar" />--%>        
        <asp:AsyncPostBackTrigger ControlID="grvProfesores" />
    </Triggers>
    <ContentTemplate>
    <table class="BTabla" style="width: 68%">
        <tr>
            <td class="style3" colspan="6">
                <h2>
                    busqueda de docente</h2>
            </td>
        </tr>
        <tr>
            <td class="filaTabla" colspan="6">
                Busqueda de Docente
            </td>
        </tr>
        <tr>
            <td class="style8">
            </td>
            <td class="style9" align="left">
                Código :
            </td>
            <td class="style14">
                <asp:TextBox ID="txtCodigo" runat="server" Width="113px"></asp:TextBox>
            </td>
            <td class="style12">
                Nombre
            </td>
            <td class="style12">
                <asp:TextBox ID="txtNombre" runat="server" Width="206px"></asp:TextBox>
            </td>
            <td class="style15">
                <asp:Button ID="btnBuscar" runat="server" Height="34px" OnClick="btnBuscar_Click1"
                    Text="Buscar" Width="87px" />

                   
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <br />


        <asp:Label ID="lblMensaje" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>


    <asp:GridView ID="grvProfesores" runat="server" Width="600px" AutoGenerateColumns="False"
        CaptionAlign="Top" AllowSorting="True" AllowPaging="True" PageSize="20" 
            onpageindexchanging="grvProfesores_PageIndexChanging" 
            onselectedindexchanged="grvProfesores_SelectedIndexChanged" >
        <Columns>
            <asp:BoundField DataField="username" HeaderText="Codigo" />
            <asp:BoundField HeaderText="Docente" DataField="Docente" />
            <asp:CommandField HeaderText="Seleccionar" SelectText="Seleccionar" 
                ShowSelectButton="True" />         
        </Columns>
    </asp:GridView>

    <br />
    <br />
    <br />

    </ContentTemplate>
    </asp:UpdatePanel>

    
   
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="panel1" DisplayAfter="0">
    <ProgressTemplate>
        <div style="background-color: Gray; filter:alpha(opacity=60); opacity:0.60; width: 100%; top: 0px; left: 0px; position: fixed; height: 100%;">
        </div>
          <div style="margin:auto;
              font-family:Trebuchet MS;
              filter: alpha(opacity=100);
              opacity: 1;
              font-size:small;
              vertical-align: middle;
              top: 45%;
              position: fixed;
              right: 45%;
              color: #275721;
              text-align: center;
              background-color: White;
              height: 100px; bottom: 296px;">
                <table style=" background-color: White; font-family: Sans-Serif; text-align: center; border: solid 1px #275721; color: #275721; width: inherit; height: inherit; padding: 15px;">
                <tr>
                <td style=" text-align: inherit;"><img src="../Imagenes/Gif/cargando.gif" alt="Loading"  /></td>
                <td style=" text-align: inherit;"><span style="font-family: Sans-Serif; font-size: medium; font-weight: bold; font">Cargando...</span></td>
                </tr>
                </table>
        </div>
    </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
